package com.ruoyi.vim.mapper;

import java.util.List;

import com.ruoyi.vim.domain.ImServiceAllocationPolicy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 客服分配策略Mapper接口
 *
 * @author wgp
 * @since 2022-12-14
 */
public interface ImServiceAllocationPolicyMapper extends BaseMapper<ImServiceAllocationPolicy> {
    /**
     * 查询客服分配策略
     *
     * @param id 客服分配策略主键
     * @return 客服分配策略
     */
    public ImServiceAllocationPolicy selectImServiceAllocationPolicyById(Long id);

    /**
     * 查询客服分配策略列表
     *
     * @param imServiceAllocationPolicy 客服分配策略
     * @return 客服分配策略集合
     */
    public List<ImServiceAllocationPolicy> selectImServiceAllocationPolicyList(ImServiceAllocationPolicy imServiceAllocationPolicy);

    /**
     * 新增客服分配策略
     *
     * @param imServiceAllocationPolicy 客服分配策略
     * @return 结果
     */
    public int insertImServiceAllocationPolicy(ImServiceAllocationPolicy imServiceAllocationPolicy);

    /**
     * 修改客服分配策略
     *
     * @param imServiceAllocationPolicy 客服分配策略
     * @return 结果
     */
    public int updateImServiceAllocationPolicy(ImServiceAllocationPolicy imServiceAllocationPolicy);

    /**
     * 删除客服分配策略
     *
     * @param id 客服分配策略主键
     * @return 结果
     */
    public int deleteImServiceAllocationPolicyById(Long id);

    /**
     * 批量删除客服分配策略
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteImServiceAllocationPolicyByIds(Long[] ids);
}
